<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>constants - Documentation</title>

    <script src="scripts/prettify/prettify.js"></script>
    <script src="scripts/prettify/lang-css.js"></script>
    <!--[if lt IE 9]>
      <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet" href="styles/prettify.css">
    <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
</head>
<body>

<input type="checkbox" id="nav-trigger" class="nav-trigger" />
<label for="nav-trigger" class="navicon-button x">
  <div class="navicon"></div>
</label>

<label for="nav-trigger" class="overlay"></label>

<nav>
    <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="LabelElement.html">LabelElement</a></li><li><a href="module-labeling-utils-GridPolygon.html">GridPolygon</a></li><li><a href="module-mgrs-utils-NonPolarGridZone.html">NonPolarGridZone</a><ul class='methods'><li data-type='method'><a href="module-mgrs-utils-NonPolarGridZone.html#toPolygon">toPolygon</a></li><li data-type='method'><a href="module-mgrs-utils-NonPolarGridZone.html#toPolyline">toPolyline</a></li></ul></li><li><a href="module-mgrs-utils-VisibleGridZone.html">VisibleGridZone</a><ul class='methods'><li data-type='method'><a href="module-mgrs-utils-VisibleGridZone.html#getCenterLabel">getCenterLabel</a></li><li data-type='method'><a href="module-mgrs-utils-VisibleGridZone.html#getLabels">getLabels</a></li></ul></li></ul><h3>Modules</h3><ul><li><a href="module-constants.html">constants</a></li><li><a href="module-geometry-utils.html">geometry-utils</a><ul class='methods'><li data-type='method'><a href="module-geometry-utils.html#~extentToPolygon">extentToPolygon</a></li><li data-type='method'><a href="module-geometry-utils.html#~pointToGeographic">pointToGeographic</a></li><li data-type='method'><a href="module-geometry-utils.html#~polygonToPolyline">polygonToPolyline</a></li><li data-type='method'><a href="module-geometry-utils.html#~toGeographic">toGeographic</a></li><li data-type='method'><a href="module-geometry-utils.html#~toWebMercator">toWebMercator</a></li></ul></li><li><a href="module-labeling-utils.html">labeling-utils</a><ul class='methods'><li data-type='method'><a href="module-labeling-utils.html#~distanceFromMapEdge">distanceFromMapEdge</a></li><li data-type='method'><a href="module-labeling-utils.html#~getScreenSize">getScreenSize</a></li><li data-type='method'><a href="module-labeling-utils.html#~getWidthOfText">getWidthOfText</a></li><li data-type='method'><a href="module-labeling-utils.html#~padZero">padZero</a></li><li data-type='method'><a href="module-labeling-utils.html#~screenDistanceBetweenPoints">screenDistanceBetweenPoints</a></li></ul></li><li><a href="module-mgrs-utils.html">mgrs-utils</a><ul class='methods'><li data-type='method'><a href="module-mgrs-utils.html#~getInterval">getInterval</a></li><li data-type='method'><a href="module-mgrs-utils.html#~handle100kGrids">handle100kGrids</a></li><li data-type='method'><a href="module-mgrs-utils.html#~handleIntervals">handleIntervals</a></li><li data-type='method'><a href="module-mgrs-utils.html#~handleZonePolygon">handleZonePolygon</a></li><li data-type='method'><a href="module-mgrs-utils.html#~processZonePolygons">processZonePolygons</a></li><li data-type='method'><a href="module-mgrs-utils.html#~zonesFromExtent">zonesFromExtent</a></li></ul></li></ul><h3>Externals</h3><ul><li><a href="external-Color.html">Color</a></li><li><a href="external-Extent.html">Extent</a></li><li><a href="external-Font.html">Font</a></li><li><a href="external-Geometry.html">Geometry</a></li><li><a href="external-Graphic.html">Graphic</a></li><li><a href="external-GraphicsLayer.html">GraphicsLayer</a></li><li><a href="external-Map.html">Map</a></li><li><a href="external-Point.html">Point</a></li><li><a href="external-Polygon.html">Polygon</a></li><li><a href="external-Polyline.html">Polyline</a></li><li><a href="external-SpatialReference.html">SpatialReference</a></li><li><a href="external-TextSymbol.html">TextSymbol</a></li></ul>
</nav>

<div id="main">
    
    <h1 class="page-title">constants</h1>
    

    




<section>

<header>
    
        
            
        
    
</header>

<article>
    <div class="container-overview">
    
        
            <div class="description"><p>Contains constants used by GridOverlay widgets.</p></div>
        

        
            




<dl class="details">

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="lib_constants.js.html">lib/constants.js</a>, <a href="lib_constants.js.html#line6">line 6</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    
    <dt class="tag-author">Author:</dt>
    <dd class="tag-author">
        <ul>
            <li>Esri</li>
        </ul>
    </dd>
    

    

    

    

    

    

    
</dl>





























        
    
    </div>

    

    

    

     

    

    
        <h3 class="subsection-title">Members</h3>

        
            
<h4 class="name" id="DEGREES_PER_RADIAN"><span class="type-signature"></span>DEGREES_PER_RADIAN<span class="type-signature"></span></h4>





<dl class="details">

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="lib_constants.js.html">lib/constants.js</a>, <a href="lib_constants.js.html#line107">line 107</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-default">Default Value:</dt>
    <dd class="tag-default"><ul class="dummy">
            <li>57.29577951308232</li>
        </ul></dd>
    

    

    

    
</dl>





<div class="description">
    <p>Defined by the equation: 360° / (2 * Math.PI)</p>
</div>








        
            
<h4 class="name" id="EAST_GEOGRAPHIC_LIMIT"><span class="type-signature"></span>EAST_GEOGRAPHIC_LIMIT<span class="type-signature"></span></h4>





<dl class="details">

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="lib_constants.js.html">lib/constants.js</a>, <a href="lib_constants.js.html#line71">line 71</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-default">Default Value:</dt>
    <dd class="tag-default"><ul class="dummy">
            <li>180</li>
        </ul></dd>
    

    

    

    
</dl>





<div class="description">
    <p>The easternmost, normalized Geographic longitude (i.e. the International Date Line; longitude 180°E)</p>
</div>








        
            
<h4 class="name" id="EAST_WEBMERCATOR_LIMIT"><span class="type-signature"></span>EAST_WEBMERCATOR_LIMIT<span class="type-signature"></span></h4>





<dl class="details">

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="lib_constants.js.html">lib/constants.js</a>, <a href="lib_constants.js.html#line93">line 93</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-default">Default Value:</dt>
    <dd class="tag-default"><ul class="dummy">
            <li>20037508.342789244</li>
        </ul></dd>
    

    

    

    
</dl>





<div class="description">
    <p>The easternmost, normalized Web Mercator x (i.e. the International Date Line; longitude 180°E)</p>
</div>








        
            
<h4 class="name" id="GEOGRAPHIC_360"><span class="type-signature"></span>GEOGRAPHIC_360<span class="type-signature"></span></h4>





<dl class="details">

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="lib_constants.js.html">lib/constants.js</a>, <a href="lib_constants.js.html#line84">line 84</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-default">Default Value:</dt>
    <dd class="tag-default"><ul class="dummy">
            <li>360</li>
        </ul></dd>
    

    

    

    
</dl>





<div class="description">
    <p>The entire span of the X axis in Geographics degrees (360° of longitude)</p>
</div>








        
            
<h4 class="name" id="HALF_PI"><span class="type-signature"></span>HALF_PI<span class="type-signature"></span></h4>





<dl class="details">

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="lib_constants.js.html">lib/constants.js</a>, <a href="lib_constants.js.html#line135">line 135</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-default">Default Value:</dt>
    <dd class="tag-default"><ul class="dummy">
            <li>1.5707963267948966</li>
        </ul></dd>
    

    

    

    
</dl>





<div class="description">
    <p>One half of Math.PI, used to slightly speed up conversion to web mercator</p>
</div>








        
            
<h4 class="name" id="MAX_MGRS_LATITUDE"><span class="type-signature"></span>MAX_MGRS_LATITUDE<span class="type-signature"></span></h4>





<dl class="details">

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="lib_constants.js.html">lib/constants.js</a>, <a href="lib_constants.js.html#line43">line 43</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-default">Default Value:</dt>
    <dd class="tag-default"><ul class="dummy">
            <li>84</li>
        </ul></dd>
    

    

    

    
</dl>





<div class="description">
    <p>MGRS is only valid between -80 -&gt; 84 degrees latitude</p>
</div>








        
            
<h4 class="name" id="MIN_MGRS_LATITUDE"><span class="type-signature"></span>MIN_MGRS_LATITUDE<span class="type-signature"></span></h4>





<dl class="details">

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="lib_constants.js.html">lib/constants.js</a>, <a href="lib_constants.js.html#line36">line 36</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>





<div class="description">
    <p>MGRS is only valid between -80 -&gt; 84 degrees latitude</p>
</div>








        
            
<h4 class="name" id="NEGATIVE_180"><span class="type-signature"></span>NEGATIVE_180<span class="type-signature"></span></h4>





<dl class="details">

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="lib_constants.js.html">lib/constants.js</a>, <a href="lib_constants.js.html#line57">line 57</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>





<div class="description">
    <p>Used to convert -180 to a slightly larger number since it causes problems when drawing graphics</p>
</div>








        
            
<h4 class="name" id="POSITIVE_180"><span class="type-signature"></span>POSITIVE_180<span class="type-signature"></span></h4>





<dl class="details">

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="lib_constants.js.html">lib/constants.js</a>, <a href="lib_constants.js.html#line50">line 50</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-default">Default Value:</dt>
    <dd class="tag-default"><ul class="dummy">
            <li>179.99999999</li>
        </ul></dd>
    

    

    

    
</dl>





<div class="description">
    <p>Used to convert 180 to a slightly smaller number since it causes problems when drawing graphics</p>
</div>








        
            
<h4 class="name" id="RADIANS_PER_DEGREE"><span class="type-signature"></span>RADIANS_PER_DEGREE<span class="type-signature"></span></h4>





<dl class="details">

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="lib_constants.js.html">lib/constants.js</a>, <a href="lib_constants.js.html#line114">line 114</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-default">Default Value:</dt>
    <dd class="tag-default"><ul class="dummy">
            <li>0.017453292519943295</li>
        </ul></dd>
    

    

    

    
</dl>





<div class="description">
    <p>Defined by the equation: (2 * Math.PI) / 360°</p>
</div>








        
            
<h4 class="name" id="WEBMERCATOR_360"><span class="type-signature"></span>WEBMERCATOR_360<span class="type-signature"></span></h4>





<dl class="details">

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="lib_constants.js.html">lib/constants.js</a>, <a href="lib_constants.js.html#line100">line 100</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-default">Default Value:</dt>
    <dd class="tag-default"><ul class="dummy">
            <li>40075016.68557849</li>
        </ul></dd>
    

    

    

    
</dl>





<div class="description">
    <p>The entire span of the X axis in web mercator units (equivalent to 360° of longitude)</p>
</div>








        
            
<h4 class="name" id="WEST_GEOGRAPHIC_LIMIT"><span class="type-signature"></span>WEST_GEOGRAPHIC_LIMIT<span class="type-signature"></span></h4>





<dl class="details">

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="lib_constants.js.html">lib/constants.js</a>, <a href="lib_constants.js.html#line64">line 64</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>





<div class="description">
    <p>The westernmost, normalized Geographic longitude (i.e. the International Date Line; longitude 180°W)</p>
</div>








        
            
<h4 class="name" id="WGS84_EQUATORIAL_RADIUS"><span class="type-signature"></span>WGS84_EQUATORIAL_RADIUS<span class="type-signature"></span></h4>





<dl class="details">

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="lib_constants.js.html">lib/constants.js</a>, <a href="lib_constants.js.html#line121">line 121</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-default">Default Value:</dt>
    <dd class="tag-default"><ul class="dummy">
            <li>6378137</li>
        </ul></dd>
    

    

    

    
</dl>





<div class="description">
    <p>The equatorial radius of the earth, using reference earth model WGS84</p>
</div>








        
            
<h4 class="name" id="WGS84_HALF_EQUATORIAL_RADIUS"><span class="type-signature"></span>WGS84_HALF_EQUATORIAL_RADIUS<span class="type-signature"></span></h4>





<dl class="details">

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="lib_constants.js.html">lib/constants.js</a>, <a href="lib_constants.js.html#line128">line 128</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-default">Default Value:</dt>
    <dd class="tag-default"><ul class="dummy">
            <li>3189068.5</li>
        </ul></dd>
    

    

    

    
</dl>





<div class="description">
    <p>One half of the WGS84_EQUATORIAL_RADIUS, used to slightly speed up conversion to web mercator</p>
</div>








        
            
<h4 class="name" id="ZONE_HEIGHT_DEGREES"><span class="type-signature"></span>ZONE_HEIGHT_DEGREES<span class="type-signature"></span></h4>





<dl class="details">

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="lib_constants.js.html">lib/constants.js</a>, <a href="lib_constants.js.html#line29">line 29</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-default">Default Value:</dt>
    <dd class="tag-default"><ul class="dummy">
            <li>8</li>
        </ul></dd>
    

    

    

    
</dl>





<div class="description">
    <p>MGRS zones are 8 degrees tall</p>
</div>








        
            
<h4 class="name" id="ZONE_WIDTH_DEGREES"><span class="type-signature"></span>ZONE_WIDTH_DEGREES<span class="type-signature"></span></h4>





<dl class="details">

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="lib_constants.js.html">lib/constants.js</a>, <a href="lib_constants.js.html#line22">line 22</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-default">Default Value:</dt>
    <dd class="tag-default"><ul class="dummy">
            <li>6</li>
        </ul></dd>
    

    

    

    
</dl>





<div class="description">
    <p>MGRS zones are 6 degrees wide</p>
</div>








        
    

    

    

    
</article>

</section>




</div>

<br class="clear">

<footer>
    Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
<script src="scripts/linenumber.js"></script>
</body>
</html>